<template>
  <li class="item">
    <div class="left">
      <p>{{ item.title }}</p>
      <div class="tps">
        <div class="time">{{ item.created_at | myTime }}</div>
        <div class="read">
          <i class="iconfont iconicon_liulanliang myicon"></i>
          <span>{{ item.read }}</span>
        </div>
        <div class="star">
          <i class="iconfont iconicon_dianzanliang myicon"></i>
          <span>{{ item.star }}</span>
        </div>
      </div>
    </div>
    <div class="right">
      <div class="cover">
        <img :src="baseUrl + item.cover" alt="" />
      </div>
    </div>
  </li>
</template>

<script>
export default {
  name: 'faceItem',
  data () {
    return {
      baseUrl: process.env.VUE_APP_BaseURL
    }
  },
  props: ['item']
}
</script>

<style lang="less" scoped>
.item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    p {
      margin: 0;
      margin-bottom: 8px;
      font-size: 16px;
      line-height: 23px;
      font-weight: bold;
      color: #181a39;
    }
    .tps {
      display: flex;
      justify-content: space-between;
      color: #b4b4bd;
      .time {
        flex: 1;
      }
      .read,
      .star {
        display: flex;
        align-items: center;
        margin-left: 21px;
        span {
          margin-left: 6px;
        }
      }
    }
  }
  .right {
    .cover {
      margin-left: 16px;
      height: 75px;
      width: 113px;
      border-radius: 3px;
      overflow: hidden;
      img {
        height: 75px;
        width: 113px;
      }
    }
  }
}
</style>
